package com.zhang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * @author ZhangJunqi
 * @Date 2022/2/8 -9:01
 */
@Controller
public class ThmeleafController {
    @RequestMapping("/thmeleafTest")
    public String thymeleafTest(Model model){
        model.addAttribute ("msg01","hello@");
        model.addAttribute ("msg02","<h1>hello@</h1>");
        model.addAttribute ("list01", Arrays.asList ("zhangsan","lisi"));
        return "ThmeleafTest";
    }
}
